package org.l.qiao.search;

import org.l.qiao.Cluster;

public class Sort extends Cluster {

    public static final int DESC = -1;
    public static final int AES = 1;

    public Sort() {
        super();
    }

    public void desc(String... fields) {
        for (String field : fields) {
            this.put(field, DESC);
        }
    }

    public void asc(String... fields) {
        for (String field : fields) {
            this.put(field, AES);
        }
    }
}
